//////////////////////////////////////////////////////////////////////////////
// DJ Status v1.8															//
// 2004 Nathan Bolender www.2004design.tk									//
// Free to use on any website												//
//////////////////////////////////////////////////////////////////////////////
// This script is currently in testing. Please do not redistribute for now. //
//////////////////////////////////////////////////////////////////////////////

Table of Contents

I. General
	a. About
	b. Changelog
	c. Using, Reproducing, and Distributing
II. Installation
	a. Initial Configuration
	b. Uploading
	c. Running the Install script
	d. Entering Data
III. Upgrading
	a. From v1.7
	b. From older versions
IV. Using the Script
	a. Adding, Editing, and Deleting DJs
	b. Editing your Settings
		1. Automatic Mode
		2. Manual Mode
	c. Uninstalling

//////////////////////////////////////////////////////////////////////////////
// I. General ////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////

a. About

DJ Status is an attempt at managing the DJs for your shoutcast radio station.
It allows to show information on the currently active DJ that could be useful
to your visitors. Information such as IM contacts and a link to their song
request page can prove invaluable. DJ Status is incredibly easy to use from
all angles. It features an easy-to-use administration panel for editing
settings and managing DJs.

DJ Status is actively developed by coding newcomer, Nathan Bolender. Feel free
to contact Nathan for any suggestions, errors, problems, help, or comments.

Website: www.2004design.tk
E-mail: Coolnat2004@fuse.net

Current Features:
-> Grabs stats from your shoutcast server such as Current title, current song,
current # of listeners.
-> If a DJ isn't connected, a message is displayed stating so.
-> If the server isn't up, it displays a message stating so.
-> Checks the server title for the DJ's name, and assigns that DJ's ID.
-> Pulls DJ name, IM info, and link to song request page (Using the
SongRequester plugin) from your MySQL database, and displays all that applies.
-> Easy config file.
-> Up to 3 aliases per DJ to check for in the server title.
-> Also checks database AIM & ICQ entries against the server's current AIM &
ICQ settings to detect the DJ.
-> Administration panel for adding, editing, and deleting DJs
-> Simple installation script
-> Manual Mode--Optional mode to disable automatic DJ detection and have DJs
log in and out.


b. Changelog


7/13/04 - v1.8
-------------------------
-> Can now check AIM & ICQ settings on server against each DJ's AIM & ICQ
entried in the database.
-> New setting that will display what method successfully detected the DJ.

7/9/04 - v1.7.3
-------------------------
-> Minor bugfix

7/8/04 - v1.7
-------------------------
-> Manual Mode--Optional mode to disable automatic DJ detection and have DJs
log in and out.

7/6/04 - v1.5.2
-------------------------
-> Several Bugfixes

7/6/04 - v1.5
-------------------------
-> Administration panel for adding, editing, and deleting DJs
-> Simple installation script

7/5/04 - v1.2
-------------------------
-> Easy config file.
-> Up to 3 aliases per DJ to check for in the server title.

7/3/04 - v1.1
-------------------------
-> Grabs stats from your shoutcast server such as Current title, current song,
current # of listeners.
-> If a DJ isn't connected, a message is displayed stating so.
-> If the server isn't up, it displays a message stating so.
-> Checks the server title for the DJ's name, and assigns that DJ's ID.
-> Pulls DJ name, IM info, and link to song request page (Using the
SongRequester plugin) from your MySQL database, and displays all that applies.

6/28/04 - v1.0
-------------------------
-> Manual only


c. Using, Reproducing, and Distributing

DJ Status is free to use, reproduce, and redistribute in any situation. Please
let me know if you use this script!

//////////////////////////////////////////////////////////////////////////////
// This script is currently in testing. Please do not redistribute for now. //
//////////////////////////////////////////////////////////////////////////////



//////////////////////////////////////////////////////////////////////////////
// II. Installation //////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////

a. Initial Configuration

Open config.php in a plain text editor such as notepad or Kwrite. Edit each
line in the configuration section according to your settings. Be sure to type
between the quotations. Do not edit past the configuration section. Each
setting is described to the right.

Note: make sure that the database info is correct. You will need to make a new
database in MySQL. Ask your webhost for more details about making databases.


b. Uploading

Upload all files to a folder on your server via FTP, or any method you prefer
to use. Be sure to maintain the same directory structure, or the script will
not work correctly.


c. Running the Install script

In your web browser, go to http://www.yourhost.com/yourfolder/admin/install.
If the install is successful, you will see a message saying it was successful.
If it was not successful, you will see an error message. Please check all of
your database settings if it does not work.

After installing, be sure to delete the "install" folder on your server before
continuing to the administration panel.


d. Entering Data

Log in to the administration panel using the password you defined in
config.php.

Click "Add" under DJ management to add your first DJ. Be sure to fill in all
of the fields marked with a asterisk "*", and any other fields you wish to fill
in. If you make a mistake, you can always use the "Edit" and "Delete" functions
at your disposal.



//////////////////////////////////////////////////////////////////////////////
// III. Upgrading ////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////

a. From v1.7 or 1.7.3

Replace the files, making sure that you fill in the values in the new
config.php. Be sure to upload the admin/install folder. Then run
admin/install/upgrade_from_1.7.x.php. It should add the values to your
database that are needed. Delete the install folder when you are done.

b. From older versions

Completely reinstall the script, after clearing out your database.



//////////////////////////////////////////////////////////////////////////////
// IV. Using the Script //////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////


a. Adding, Editing, and Deleting DJs

In the administration panel, click "Add" to add a DJ, "Edit" to edit a DJ, and
"Delete" to delete a DJ. Everything in these sections is rather
straightforward.


b. Editing your Settings

Click "Edit" under "Settings" to edit your settings.


1. Automatic Mode

Automatic mode is the default settings. This searches the shoutcast server
title for each alias defined for each DJ. If one is found, that DJ is set to
active, and their stats are displayed.


2. Manual Mode

If you choose to use manual mode, DJ Status will not look at the server title,
but will check for the "logged in" DJ. DJs can log in and out by going to
update.php and using their own password. You may also use your administrator
password in all cases to override the current DJ.

This is a perfect solution if your DJs do not put their name in the server
title, or you want a more concrete way of showing DJ stats. Please be aware,
that stats do not display if a DJ is not logged on--even if the radio is
active.


3. Display how your DJ was detected

If set to Yes, you will be able to see what was the determining factor in
detecting your DJ. This is displayed on index.php. Please be aware that it may
show one thing, when it could of also been detected by something else. 

This is the order the checks are done in: Alias 1, Alias 2, Alias 3, AIM, ICQ.
The last one found will be the one displayed.


c. Uninstalling

If you wish to uninstall this script, just delete the files from your server
and delete the database used. Simple as that.

//////////////////////////////////////////////////////////////////////////////
///////////////////////////// End of Readme //////////////////////////////////
//////////////////////////////////////////////////////////////////////////////